package com.cz.run.service.impl;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.cz.run.beans.mysql.UserPocket;
import com.cz.run.mapper.UserPocketDao;
import com.cz.run.service.IUserPocketService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 口袋表 服务实现类
 * </p>
 *
 * @author CAIYJ
 * @since 2018-06-02
 */
@Service
public class UserPocketServiceImpl extends ServiceImpl<UserPocketDao, UserPocket> implements IUserPocketService {

    @Override
    public List<UserPocket> getUserPocketByUserNameAndAddress(Wrapper<UserPocket> wrapper) {
        return this.baseMapper.getUserPocketByUserNameAndAddress(wrapper);
    }

    @Override
    public int getCountByUserNameAndAddress(Wrapper<UserPocket> wrapper) {
        return this.baseMapper.getCountByUserNameAndAddress(wrapper);
    }
}
